home *** CD-ROM | disk | FTP | other *** search
- ; QBox installation script
- ; copyright 1995 T.L.Bullock
-
- ; Report 0% complete
- (complete 0)
-
- (set VERS "1.16")
- (set MSG_OSBAD "\n\n\nThis program might not work on your Amiga\nas you do not have OS3 or greater.\nThat isn't to say you shouldn't try however!")
- (set MSG_WHERE "Where do you want the QBox program installed?")
- (set MSG_EXEC "Installing QBox executeable")
- (set MSG_DOCS "Installing Docs to Locale:help/english")
- (set MSG_LIBS "Installing Explode.library to Libs:")
- (set MSG_FONTS "Installing fonts required to Fonts:")
- (set MSG_S "Installing example scripts to S:")
- (set MSG_INICO "\n\n\nDo you wish to install other icons\nby Eric van Velthooven ?")
- (set MSG_SEICO "Which icon set do you wish to install")
- (set OP_QBOX "QBox (recommended)")
- (set OP_MWB "Magic Workbench")
- (set OP_SMWB "Small Magic Workbench")
- (set OP_NI "NewIcon")
- (set OP_CBM "Commodore")
- (set MSG_ICQBOX "QBox")
- (set MSG_ICMWB "MagicWB")
- (set MSG_ICSMWB "SmallMagicWB")
- (set MSG_ICNI "NewIcons")
- (set MSG_ICCBM "Commodore")
- (set MSG_ICCOPY "Copying %s icons...")
-
- ;Guarentee at least OS3.x+
- (set osvers (/ (getversion) 65536))
- (if (< osvers 39)
- (message MSG_OSBAD)
- )
-
- ; Request QBox prog destination
- (set qb-dest
- (askdir
- (prompt MSG_WHERE)
- (help @askdir-help)
- (default @default-dest)
- )
- )
-
- ; Assign selection to default
- (set @default-dest qb-dest)
-
- ; Copy QBox-v#?#? with icons (2 files)
- (copyfiles
- (prompt MSG_EXEC)
- (help @copyfiles-help)
- (source "")
- (dest @default-dest)
- (pattern "QBox-v#?#?")
- (infos)
- (confirm)
- (optional force)
- )
-
- ; Report 12% complete
- (complete 12)
-
- ; Copy docs to Locale:help/english (2 files)
- (copyfiles
- (prompt MSG_DOCS)
- (help @copyfiles-help)
- (source "Docs")
- (dest "Locale:help/english/")
- (optional oknodelete force)
- (infos)
- (all)
- (confirm)
- (optional force)
- )
-
- ; Report 24% complete
- (complete 24)
-
- ; Copy libs/explode.library to Libs: (1 file)
- (copylib
- (prompt MSG_LIBS)
- (help @copylib-help)
- (source "libs/explode.library")
- (dest "Libs:")
- (confirm)
- (optional force)
- )
-
- ; Report 29% complete
- (complete 29)
-
- ; Copy fonts/ to Fonts: (7 files)
- (copyfiles
- (prompt MSG_FONTS)
- (help @copyfiles-help)
- (source "fonts")
- (dest "Fonts:")
- (fonts)
- (all)
- (confirm)
- (optional force)
- )
-
- ;Report 71% complete
- (complete 71)
-
- ; Copy S/ to S: (4 files)
- (copyfiles
- (prompt MSG_S)
- (help @copyfiles-help)
- (source "s")
- (dest "S:")
- (all)
- (confirm)
- (optional force)
- )
-
- ;Report 94% complete
- (complete 94)
-
- ; Ask to install LazaruZ icons (1 file)
- (set choice
- (askbool
- (prompt MSG_INICO)
- (help @askbool-help)
- (default 0)
- )
- )
- (if (> choice 0)
- ;Ask which set of icons
- (
- (set icoset
- (askchoice
- (prompt MSG_SEICO)
- (help @askchoice-help)
- (choices OP_QBOX OP_MWB OP_SMWB OP_NI OP_CBM)
- (default 0)
- )
- )
- (select icoset
- (
- (set ext "")
- (set MSG_CPICO MSG_ICQBOX)
- )
- (
- (set ext "_MWB")
- (set MSG_CPICO MSG_ICMWB)
- )
- (
- (set ext "_SMWB")
- (set MSG_CPICO MSG_ICSMWB)
- )
- (
- (set ext "_NI")
- (set MSG_CPICO MSG_ICNI)
- )
- (
- (set ext "_CBM")
- (set MSG_CPICO MSG_ICCBM)
- )
- )
- (set src (cat "icons/QBox-vX.XXe" ext ".info"))
- (set dsn (cat "QBox-v" vers "e.info"))
- (copyfiles
- (prompt MSG_ICCOPY MSG_CPICO)
- (help @copyfiles-help)
- (source src)
- (dest @default-dest)
- (newname dsn)
- (optional force)
- )
- )
- )
-
- ; Report 100% complete
- (complete 100)
-
- ; T-t-t-thats all folks!!!
- (exit)
-